package org.marketlive.entity.account;


import org.marketlive.entity.IEntityHome;

public interface IAccountSetHome extends IEntityHome {

    /**
     * Creates an AcocuntSet using the input parameters to initialize it with.
     * @param code
     * @param name
     * @return
     */
    IAccountSet create(final String code, final String name);

    /**
     * Returns the {@link IAccountSet} with the given code. Code must be unique across all account sets in the instance.
     *
     * @param code the account set code to search on.
     * @return an instance of <code>IAccountSet</code> if one is found for the given code, null otherwise.
     */
    public IAccountSet findByCode(final String code);
    
}
